﻿using System;
using System.Web;
using VTemplate.Engine;

public class article_detail : BasePage
{
    protected override void InitPageTemplate()
    {
        Tag tag = this.Document.GetChildTagById("fid");
        string arg = tag.Attributes["value"].Text;
        this.Document.Variables.SetValue("blog", "log");
        this.Document.Variables.SetValue("sitename", "网站公司首页");
        this.Document.Variables.SetValue("article", BLL.Article.instance.GetList(""));
        this.Document.Variables.SetValue("channel", BLL.Channel.instance.GetList("fid=" + arg));
    }

    protected override void LoadTemplateFile(string fileName)
    {
        fileName = this.Server.MapPath("~/template/default/article_detail.html");
        base.LoadTemplateFile(fileName);
    }
}